from django.urls import path, include
from rest_framework.routers import DefaultRouter
from .views import UserViewSet, QueryUserAPIView, IsExistsUsernameAPIView, ImportUsersExcelView, ExportUsersExcelView

router = DefaultRouter()
router.register(r'users', UserViewSet)

urlpatterns = [
    path('', include(router.urls)),
    path('query_user/', QueryUserAPIView.as_view(), name='query_user'),
    path('is_exists_username/', IsExistsUsernameAPIView.as_view(), name='is_exists_username'),
    path('import_users_excel/', ImportUsersExcelView.as_view(), name='import_users_excel'),
    path('export_users_excel/', ExportUsersExcelView.as_view(), name='export_users_excel'),
]
